package com.example.senior_homework.repository.db

import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.example.senior_homework.repository.dao.SeniorDao
import com.example.senior_homework.entity.Senior
import com.example.senior_homework.utils.DateConverter

//好多坑，这里导出模式又是什么，得下去理解理解学习学习
@Database(entities = [Senior::class], version = 1, exportSchema = false)
@TypeConverters(DateConverter::class)
abstract class SeniorDatabase : RoomDatabase() {
    abstract fun seniorDao(): SeniorDao
}